{% extends "menu.html" %}
{% block content %}

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">



            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>任务列表</h2>

                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                  <span>本周任务汇总:</span><span></span>
                    <br />
                      <table class="sui-table table-bordered">
                          <thead>
                            <tr>
                                <th>ID</th>
                                <th>标题</th>
                                <th>开始时间</th>
                                <th>结束时间</th>
                                <th>任务创建时间</th>
                                <th>所属项目</th>
                                <th>任务状态</th>
                                <th>管理</th>

                            </tr>
                          </thead>
                          <tbody>
                          <style type="text/css">
                             tr:hover{
                                 background-color: #FFFFE0;
                             }
                          </style>
                          {% for i in w_list %}
                            <tr >

                                <td>{{ i.w_id}}</td>
                                <td><a href="/jobs/show_jobs/?id={{ i.w_id}}">{{ i.w_title }}</a></td>
                                <td>{{ i.w_start_time }}</td>
                                <td>{{ i.w_end_time }}</td>
                                <td>{{ i.w_create_time }}</td>
                                <td>{{ i.w_project__p_name}}</td>
                                {% if i.w_status == "0" %}
                                    <td><span class="sui-label label-"><a href="/jobs/show_jobs/?id={{ i.w_id }}&status=1" style="color: #fffee8">未开始</a></span></td>
                                {% elif i.w_status == "1" %}
                                    <td><span class="sui-label label-danger"><a href="/jobs/show_jobs/?id={{ i.w_id }}&status=2" style="color: #fffee8">进行中</a></span></td>
                                {% elif i.w_status == "2" %}
                                    <td><span class="sui-label label-success"><a href="/jobs/show_jobs/?id={{ i.w_id }}&status=3" style="color: #fffee8">完成</a></span></td>
                                {% else %}
                                    <td><span class="sui-label label-info"><a href="/jobs/show_jobs/?id={{ i.w_id }}&status=0" style="color: #fffee8">关闭</a></span></td>
                                {% endif %}
                                <td><a href="/jobs/delete/?id={{ i.w_id}}">删除</a></td>
                            </tr>
                        {% endfor %}

                          </tbody>
                      </table>
                  </div>
                </div>
              </div>
            </div>


          </div>
        </div>
{% endblock %}